﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Waaahsabi.Controls.TheGame" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:ic="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions" 
	xmlns:System="clr-namespace:System;assembly=mscorlib" 
	xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
	xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" 
	mc:Ignorable="d">
	<Style x:Key="ProgramQuitButtonStyle" TargetType="Button">
		<Setter Property="Background" Value="#FF1F3B53"/>
		<Setter Property="Foreground" Value="#BFFFFFFF"/>
		<Setter Property="Padding" Value="3"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="BorderBrush">
			<Setter.Value>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFA3AEB9" Offset="0"/>
					<GradientStop Color="#FF8399A9" Offset="0.375"/>
					<GradientStop Color="#FF718597" Offset="0.375"/>
					<GradientStop Color="#FF617584" Offset="1"/>
				</LinearGradientBrush>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid x:Name="grid" d:DesignWidth="28" d:DesignHeight="32.333">
						<Grid.Effect>
							<BlurEffect Radius="0"/>
						</Grid.Effect>
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualStateGroup.Transitions>
									<VisualTransition GeneratedDuration="00:00:00.0200000"/>
								</VisualStateGroup.Transitions>
								<VisualState x:Name="Normal"/>
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Pressed">
									<Storyboard>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="#FF5F5F5F"/>
										</ColorAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="#FF001436"/>
										</ColorAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="#FF0091FF"/>
										</ColorAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Disabled">
									<Storyboard>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="(UIElement.Opacity)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.25"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.Effect).(BlurEffect.Radius)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="5"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
							<VisualStateGroup x:Name="FocusStates">
								<VisualState x:Name="Focused"/>
								<VisualState x:Name="Unfocused"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Border x:Name="background" BorderThickness="1" BorderBrush="Black" d:LayoutOverrides="Height" Margin="0" CornerRadius="2,15,15,2">
							<Border.Background>
								<RadialGradientBrush RadiusX="0.936" RadiusY="1.349">
									<GradientStop Color="#02003479" Offset="1"/>
									<GradientStop Color="#024092FF"/>
								</RadialGradientBrush>
							</Border.Background>
						</Border>
						<Border x:Name="highlighter" d:LayoutOverrides="Height" Margin="0" Visibility="Collapsed" CornerRadius="2,15,15,2">
							<Border.Effect>
								<DropShadowEffect BlurRadius="10" Color="#FF00B8FF" Direction="275" ShadowDepth="0"/>
							</Border.Effect>
							<Border.Background>
								<RadialGradientBrush RadiusY="0.957">
									<GradientStop Color="#FF00225A" Offset="1"/>
									<GradientStop Color="#FF00D7FF" Offset="0.384"/>
								</RadialGradientBrush>
							</Border.Background>
							<Border.OpacityMask>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#3FFFFFFF" Offset="0.45"/>
									<GradientStop Color="White" Offset="1"/>
									<GradientStop Color="White"/>
									<GradientStop Color="#3FFFFFFF" Offset="0.55"/>
								</LinearGradientBrush>
							</Border.OpacityMask>
						</Border>
						<ContentPresenter x:Name="contentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" UseLayoutRounding="True" Margin="{TemplateBinding Padding}" Content="X"/>
						<Border x:Name="glass" BorderThickness="1" Margin="1" BorderBrush="#7FFFFFFF" CornerRadius="1,15,15,1">
							<Border.Background>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#3FFFFFFF" Offset="0.5"/>
									<GradientStop Color="#BFFFFFFF"/>
									<GradientStop Color="Transparent" Offset="0.5001"/>
								</LinearGradientBrush>

							</Border.Background>
						</Border>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="FontFamily" Value="Arial Black"/>
		<Setter Property="FontSize" Value="13.333"/>
	</Style>
	<Style x:Key="ProgramQuitButtonStyle2" TargetType="Button">
		<Setter Property="Background" Value="#FF1F3B53"/>
		<Setter Property="Foreground" Value="#BFFFFFFF"/>
		<Setter Property="Padding" Value="3"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="BorderBrush">
			<Setter.Value>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFA3AEB9" Offset="0"/>
					<GradientStop Color="#FF8399A9" Offset="0.375"/>
					<GradientStop Color="#FF718597" Offset="0.375"/>
					<GradientStop Color="#FF617584" Offset="1"/>
				</LinearGradientBrush>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid x:Name="grid" d:DesignWidth="28" d:DesignHeight="32.333">
						<Grid.Effect>
							<BlurEffect Radius="0"/>
						</Grid.Effect>
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualStateGroup.Transitions>
									<VisualTransition GeneratedDuration="00:00:00.0200000"/>
								</VisualStateGroup.Transitions>
								<VisualState x:Name="Normal"/>
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Pressed">
									<Storyboard>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="#FF5F5F5F"/>
										</ColorAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="#FF001436"/>
										</ColorAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="#FF0091FF"/>
										</ColorAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Disabled">
									<Storyboard>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="(UIElement.Opacity)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.25"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.Effect).(BlurEffect.Radius)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="5"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
							<VisualStateGroup x:Name="FocusStates">
								<VisualState x:Name="Focused"/>
								<VisualState x:Name="Unfocused"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Border x:Name="background" BorderThickness="1" BorderBrush="Black" d:LayoutOverrides="Height" Margin="0" CornerRadius="2,15,15,2">
							<Border.Background>
								<RadialGradientBrush RadiusX="0.936" RadiusY="1.349">
									<GradientStop Color="{StaticResource TheGameDarkRed}" Offset="1"/>
									<GradientStop Color="{StaticResource TheGameBrightRed}"/>
								</RadialGradientBrush>
							</Border.Background>
						</Border>
						<Border x:Name="highlighter" d:LayoutOverrides="Height" Margin="0" Visibility="Collapsed" CornerRadius="2,15,15,2">
							<Border.Effect>
								<DropShadowEffect BlurRadius="10" Color="#FF00B8FF" Direction="275" ShadowDepth="0"/>
							</Border.Effect>
							<Border.Background>
								<RadialGradientBrush RadiusY="0.957">
									<GradientStop Color="#FF00225A" Offset="1"/>
									<GradientStop Color="#FF00D7FF" Offset="0.384"/>
								</RadialGradientBrush>
							</Border.Background>
							<Border.OpacityMask>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#3FFFFFFF" Offset="0.45"/>
									<GradientStop Color="White" Offset="1"/>
									<GradientStop Color="White"/>
									<GradientStop Color="#3FFFFFFF" Offset="0.55"/>
								</LinearGradientBrush>
							</Border.OpacityMask>
						</Border>
						<ContentPresenter x:Name="contentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" UseLayoutRounding="True" Margin="{TemplateBinding Padding}" Content="X"/>
						<Border x:Name="glass" BorderThickness="1" Margin="1" BorderBrush="#7FFFFFFF" CornerRadius="1,15,15,1">
							<Border.Background>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#3FFFFFFF" Offset="0.5"/>
									<GradientStop Color="#BFFFFFFF"/>
									<GradientStop Color="Transparent" Offset="0.5001"/>
								</LinearGradientBrush>

							</Border.Background>
						</Border>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="FontFamily" Value="Arial Black"/>
		<Setter Property="FontSize" Value="13.333"/>
	</Style>

    <Style TargetType="local:GenericWelcomeScreen">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:GenericWelcomeScreen">
                	<StackPanel d:DesignWidth="409" d:DesignHeight="253">
                		<TextBlock HorizontalAlignment="Center" Margin="0,0,0,5" FontSize="18.667" Foreground="White" Text="{TemplateBinding WelcomeTitle}" TextWrapping="Wrap" FontFamily="Arial Black"/>
                		<TextBlock Margin="10,0,10,16" Foreground="White" Text="{TemplateBinding WelcomeMessage}" TextWrapping="Wrap" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8"/>
                		<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
                			<Button x:Name="btnDisconnect" Margin="0,0,10,0" Width="75" Content="Disconnect" Style="{StaticResource DefaultButtonStyle}" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Gros" FontSize="8"/>
                			<Button x:Name="btnContinue" HorizontalAlignment="Center" VerticalAlignment="Center" Width="120" Content="Agree &amp; Continue" Style="{StaticResource DefaultButtonStyle}" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Gros" FontSize="8"/>
                		</StackPanel>
                	</StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="local:GenericFeatureList">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:GenericFeatureList">
                    <StackPanel d:DesignWidth="717" d:DesignHeight="418" Background="{TemplateBinding Background}">
                		<TextBlock Text="{TemplateBinding Title}" TextWrapping="Wrap" Foreground="White" FontSize="13.333" FontWeight="Bold" UseLayoutRounding="True" Margin="10,0,0,5" FontFamily="Arial Black"/>
                		<TextBlock Text="{TemplateBinding Description}" TextWrapping="Wrap" Margin="10,0,10,10" Foreground="White" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8"/>
                    	<ItemsControl Margin="10" ItemsSource="{TemplateBinding Items}" MinWidth="100" MinHeight="100"/>
                	</StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Background" Value="{x:Null}"/>
    </Style>

    <Style TargetType="local:GenericSubSystemInterface">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:GenericSubSystemInterface">
                	<Grid Background="{TemplateBinding Background}" d:DesignWidth="402" d:DesignHeight="290">
                		<TextBlock Margin="10,0,0,0" UseLayoutRounding="True" FontSize="13.333" FontWeight="Bold" Foreground="White" Text="{TemplateBinding Title}" TextWrapping="Wrap" VerticalAlignment="Top" FontFamily="Arial Black"/>
                		<ContentControl Content="{TemplateBinding Content}" Margin="10,30,10,10" Background="{TemplateBinding Background}" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"/>
                	</Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
    </Style>
    <Style x:Key="SelectorButtonStyle" TargetType="Button">
    	<Setter Property="Background" Value="#FF1F3B53"/>
    	<Setter Property="Foreground" Value="White"/>
    	<Setter Property="BorderThickness" Value="1"/>
    	<Setter Property="BorderBrush">
    		<Setter.Value>
    			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    				<GradientStop Color="#FFA3AEB9" Offset="0"/>
    				<GradientStop Color="#FF8399A9" Offset="0.375"/>
    				<GradientStop Color="#FF718597" Offset="0.375"/>
    				<GradientStop Color="#FF617584" Offset="1"/>
    			</LinearGradientBrush>
    		</Setter.Value>
    	</Setter>
    	<Setter Property="Template">
    		<Setter.Value>
    			<ControlTemplate TargetType="Button">
    				<Grid x:Name="grid">
    					<VisualStateManager.VisualStateGroups>
    						<VisualStateGroup x:Name="CommonStates">
    							<VisualStateGroup.Transitions>
    								<VisualTransition GeneratedDuration="00:00:00.0200000"/>
    							</VisualStateGroup.Transitions>
    							<VisualState x:Name="Normal"/>
    							<VisualState x:Name="MouseOver">
    								<Storyboard>
    									<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
    										<DiscreteObjectKeyFrame KeyTime="00:00:00">
    											<DiscreteObjectKeyFrame.Value>
    												<Visibility>Visible</Visibility>
    											</DiscreteObjectKeyFrame.Value>
    										</DiscreteObjectKeyFrame>
    									</ObjectAnimationUsingKeyFrames>
    								</Storyboard>
    							</VisualState>
    							<VisualState x:Name="Pressed">
    								<Storyboard>
    									<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
    										<EasingColorKeyFrame KeyTime="00:00:00" Value="#FF5F5F5F"/>
    									</ColorAnimationUsingKeyFrames>
    									<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
    										<DiscreteObjectKeyFrame KeyTime="00:00:00">
    											<DiscreteObjectKeyFrame.Value>
    												<Visibility>Visible</Visibility>
    											</DiscreteObjectKeyFrame.Value>
    										</DiscreteObjectKeyFrame>
    									</ObjectAnimationUsingKeyFrames>
    									<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
    										<EasingColorKeyFrame KeyTime="00:00:00" Value="#FF001436"/>
    									</ColorAnimationUsingKeyFrames>
    									<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
    										<EasingColorKeyFrame KeyTime="00:00:00" Value="#FF0091FF"/>
    									</ColorAnimationUsingKeyFrames>
    								</Storyboard>
    							</VisualState>
    							<VisualState x:Name="Disabled">
    								<Storyboard>
    									<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="(UIElement.Opacity)">
    										<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.5"/>
    									</DoubleAnimationUsingKeyFrames>
    								</Storyboard>
    							</VisualState>
    						</VisualStateGroup>
    						<VisualStateGroup x:Name="FocusStates">
    							<VisualState x:Name="Focused"/>
    							<VisualState x:Name="Unfocused"/>
    						</VisualStateGroup>
    					</VisualStateManager.VisualStateGroups>
    					<Border x:Name="outerEdge" BorderThickness="1" BorderBrush="#7FFFFFFF" Margin="-1" d:LayoutOverrides="Height" CornerRadius="3">
    						<Border.Background>
    							<RadialGradientBrush RadiusX="0.936" RadiusY="1.349">
    								<GradientStop Color="Black" Offset="1"/>
    								<GradientStop Color="#FFD92200"/>
    							</RadialGradientBrush>
    						</Border.Background>
    					</Border>
    					<Border x:Name="background" BorderThickness="1" BorderBrush="Black" d:LayoutOverrides="Height" Margin="0" CornerRadius="2">
    						<Border.Background>
    							<RadialGradientBrush RadiusX="0.936" RadiusY="1.349">
    								<GradientStop Color="Black" Offset="1"/>
    								<GradientStop Color="#FFD5D5D5"/>
    							</RadialGradientBrush>
    						</Border.Background>
    					</Border>
    					<Border x:Name="highlighter" d:LayoutOverrides="Height" Margin="0" Visibility="Collapsed">
    						<Border.Effect>
    							<DropShadowEffect BlurRadius="10" Color="#FF00B8FF" Direction="275" ShadowDepth="0"/>
    						</Border.Effect>
    						<Border.Background>
    							<RadialGradientBrush RadiusY="0.957">
    								<GradientStop Color="#FF00225A" Offset="1"/>
    								<GradientStop Color="#FF00D7FF" Offset="0.384"/>
    							</RadialGradientBrush>
    						</Border.Background>
    						<Border.OpacityMask>
    							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    								<GradientStop Color="#3FFFFFFF" Offset="0.45"/>
    								<GradientStop Color="White" Offset="1"/>
    								<GradientStop Color="White"/>
    								<GradientStop Color="#3FFFFFFF" Offset="0.55"/>
    							</LinearGradientBrush>
    						</Border.OpacityMask>
    					</Border>
    					<Grid Opacity="0.75" VerticalAlignment="Center" Margin="0">
    						<Grid.ColumnDefinitions>
    							<ColumnDefinition Width="0.894*"/>
    							<ColumnDefinition Width="15"/>
    						</Grid.ColumnDefinitions>
    						<Path Stretch="Fill" Data="F1 M 480,128L 544,192L 480,256L 480,128 Z " Margin="0,5,10,5" UseLayoutRounding="True" Grid.Column="1" Height="15">
    							<Path.Fill>
    								<SolidColorBrush Color="{StaticResource TheGameDarkBlue}"/>
    							</Path.Fill>
    						</Path>
    						<Rectangle Margin="10,5,0,5">
    							<Rectangle.OpacityMask>
    								<LinearGradientBrush EndPoint="0.998,0.5" StartPoint="0,0.5">
    									<GradientStop Offset="0"/>
    									<GradientStop Color="White" Offset="1"/>
    								</LinearGradientBrush>
    							</Rectangle.OpacityMask>
    							<Rectangle.Fill>
    								<SolidColorBrush Color="{StaticResource TheGameDarkBlue}"/>
    							</Rectangle.Fill>
    						</Rectangle>
    					</Grid>
    					<ContentPresenter x:Name="contentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" UseLayoutRounding="True" Margin="{TemplateBinding Padding}"/>
    					<Border x:Name="glass" BorderThickness="1" Margin="1" BorderBrush="#7FFFFFFF" CornerRadius="1">
    						<Border.Background>
    							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    								<GradientStop Color="#3FFFFFFF" Offset="0.5"/>
    								<GradientStop Color="#BFFFFFFF"/>
    								<GradientStop Color="Transparent" Offset="0.5001"/>
    							</LinearGradientBrush>

    						</Border.Background>
    					</Border>
    				</Grid>
    			</ControlTemplate>
    		</Setter.Value>
    	</Setter>
    	<Setter Property="UseLayoutRounding" Value="True"/>
    	<Setter Property="FontFamily" Value="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Gros"/>
    	<Setter Property="FontSize" Value="8"/>
    </Style>

    <Style TargetType="local:GenericSelectorButton">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:GenericSelectorButton">
                    <Grid Background="{TemplateBinding Background}" d:DesignWidth="294" d:DesignHeight="24.333" Margin="0,0,0,5">
                		<Grid x:Name="grdBlur">
                			<Grid.Effect>
                				<BlurEffect Radius="0"/>
                			</Grid.Effect>
                			<Button x:Name="btnSelectButton" Style="{StaticResource SelectorButtonStyle}" Content="{TemplateBinding ItemName}" HorizontalContentAlignment="Left" Padding="10,3,3,3" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Gros" FontSize="8" Foreground="White"/>
                		</Grid>
                		<TextBlock x:Name="txtAccessGranted" HorizontalAlignment="Center" TextWrapping="Wrap" Text="Access granted" d:LayoutOverrides="Height" VerticalAlignment="Center" FontWeight="Bold" FontSize="18.667" Foreground="Lime" FontStyle="Italic" Visibility="Collapsed">
                			<TextBlock.Effect>
                				<DropShadowEffect Color="Lime" ShadowDepth="0" BlurRadius="10"/>
                			</TextBlock.Effect>
                		</TextBlock>
                	</Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="local:GenericLogItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:GenericLogItem">
                    <Grid d:DesignWidth="573" d:DesignHeight="19">
                    	<Grid.ColumnDefinitions>
                    		<ColumnDefinition Width="140"/>
                    		<ColumnDefinition Width="100"/>
                    		<ColumnDefinition Width="140"/>
                    		<ColumnDefinition/>
                    	</Grid.ColumnDefinitions>
                		<Border BorderBrush="#3FFFFFFF" BorderThickness="1" Grid.ColumnSpan="4" CornerRadius="2"/>
                    	<ContentControl d:LayoutOverrides="Height" Margin="5,0" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="#FFC4C4C4" Width="135" Content="{TemplateBinding LogTimestamp}" VerticalAlignment="Center" HorizontalAlignment="Left"/>
                    	<ContentControl HorizontalContentAlignment="Right" VerticalContentAlignment="Stretch" Grid.Column="1" d:LayoutOverrides="Height" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="#FFC4C4C4" Content="{TemplateBinding LogSourceIP}" VerticalAlignment="Center" Padding="0,0,5,0"/>
                    	<ContentControl HorizontalContentAlignment="Left" VerticalContentAlignment="Stretch" Margin="0" Grid.Column="2" d:LayoutOverrides="Width, Height" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="#FFC4C4C4" VerticalAlignment="Center" Content="{TemplateBinding LogAction}"/>
                    	<ContentControl HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Grid.Column="3" d:LayoutOverrides="Width, Height" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="#FFC4C4C4" Margin="0,0,5,0" Content="{TemplateBinding LogAffectedItem}" VerticalAlignment="Center"/>
                	</Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="LogAction" Value="-- NO ACTION --"/>
        <Setter Property="LogAffectedItem" Value="-- NO AFFECTED ITEM --"/>
        <Setter Property="LogSourceIP" Value="-- NO SOURCE --"/>
        <Setter Property="LogTimestamp" Value="--"/>
    </Style>

    <Style TargetType="local:GenericTargetingControl">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:GenericTargetingControl">
                	<Grid d:DesignWidth="304" d:DesignHeight="30" MinWidth="200" MinHeight="30">
                		<Grid.Resources>
                			<Storyboard x:Name="ProgressAnimation">
                				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="progressIndicator" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Offset)">
                					<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.0001"/>
                					<EasingDoubleKeyFrame KeyTime="00:00:01" Value="0.9997"/>
                				</DoubleAnimationUsingKeyFrames>
                				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="progressIndicator" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Offset)">
                					<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.0002"/>
                					<EasingDoubleKeyFrame KeyTime="00:00:01" Value="0.9998"/>
                				</DoubleAnimationUsingKeyFrames>
                			</Storyboard>
                			<Storyboard x:Name="ReverseProgressAnimation">
                				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="progressIndicator" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Offset)">
                					<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.9999"/>
                					<EasingDoubleKeyFrame KeyTime="00:00:01" Value="0.0002"/>
                				</DoubleAnimationUsingKeyFrames>
                				<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="progressIndicator" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Offset)">
                					<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.9998"/>
                					<EasingDoubleKeyFrame KeyTime="00:00:01" Value="0.0001"/>
                				</DoubleAnimationUsingKeyFrames>
                			</Storyboard>
                		</Grid.Resources>
                		<VisualStateManager.VisualStateGroups>
                			<VisualStateGroup x:Name="DefaultStates">
                				<VisualState x:Name="Generic"/>
                				<VisualState x:Name="Bypasser">
                					<Storyboard>
                						<DoubleAnimation Duration="0" To="0.01" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Offset)" Storyboard.TargetName="border" d:IsOptimized="True"/>
                						<ColorAnimation Duration="0" To="{StaticResource TheGameBrightRed}" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="border" d:IsOptimized="True"/>
                						<ColorAnimation Duration="0" To="{StaticResource TheGameDarkRed}" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="border" d:IsOptimized="True"/>
                					</Storyboard>
                				</VisualState>
                			</VisualStateGroup>
                		</VisualStateManager.VisualStateGroups>
                		<Border BorderThickness="10" CornerRadius="60,15,15,0" BorderBrush="Black" Opacity="0.75" d:LayoutOverrides="Width, Height" Effect="{StaticResource DefaultShadowSmall}" Grid.ColumnSpan="2"/>
                		<Border x:Name="border" BorderThickness="1" CornerRadius="60,15,15,0" d:LayoutOverrides="Width, Height" BorderBrush="#7FFFFFFF" Grid.ColumnSpan="2">
                			<Border.Background>
                				<RadialGradientBrush RadiusY="0.812" GradientOrigin="0.5,0.945">
                					<GradientStop Color="#FF003479" Offset="1"/>
                					<GradientStop Color="#FF4092FF"/>
                				</RadialGradientBrush>
                			</Border.Background>
                		</Border>
                		<Border x:Name="progressIndicator" BorderThickness="0,1,1,0" CornerRadius="60,15,15,0" Opacity="0.5">
                			<Border.Background>
                				<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                					<GradientStop Color="White" Offset="0"/>
                					<GradientStop Color="Transparent" Offset="0.0002"/>
                					<GradientStop Color="White" Offset="0.0001"/>
                				</LinearGradientBrush>
                			</Border.Background>
                		</Border>
                		<Grid Grid.ColumnSpan="2">
                			<Grid.ColumnDefinitions>
                				<ColumnDefinition Width="60"/>
                				<ColumnDefinition/>
                				<ColumnDefinition Width="24"/>
                			</Grid.ColumnDefinitions>
                			<TextBlock Text="{TemplateBinding Label}" Margin="0,0,15,0" VerticalAlignment="Top" Foreground="{TemplateBinding Foreground}" Grid.Column="1" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Gros"/>
                			<TextBlock Text="{TemplateBinding StatusText}" Margin="0,14,15,0" VerticalAlignment="Top" Foreground="{TemplateBinding Foreground}" Grid.Column="1" FontSize="8" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Gros"/>
                			<Button x:Name="btnQuitButton" Style="{StaticResource ProgramQuitButtonStyle}" Content="X" Grid.Column="2" Margin="0,1,1,1" FontWeight="Bold" FontSize="13.333" FontFamily="Arial Black">
                				<Button.Foreground>
                					<LinearGradientBrush EndPoint="0.5,0.546" StartPoint="0.5,0.457">
                						<GradientStop Color="#FFB0B0B0" Offset="1"/>
                						<GradientStop Color="White"/>
                					</LinearGradientBrush>
                				</Button.Foreground>
                			</Button>
                		</Grid>
                		<Border CornerRadius="60,15,15,0" Background="{StaticResource DefaultGlassGradient}" Opacity="0.75" d:LayoutOverrides="Width, Height" IsHitTestVisible="False" Grid.ColumnSpan="2"/>
                	</Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Label" Value="File Copier v3.0 with very long name"/>
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="FontFamily" Value="Fonts.zip#Gros"/>
        <Setter Property="FontSize" Value="8"/>
        <Setter Property="StatusText" Value="Do something here"/>
    </Style>
    <Style x:Key="[BypasserControl default]" TargetType="local:BypasserControl">
    	<Setter Property="Template">
    		<Setter.Value>
    			<ControlTemplate TargetType="local:BypasserControl">
    				<Grid d:DesignWidth="309" d:DesignHeight="30" MinWidth="200" MinHeight="30" HorizontalAlignment="Left" VerticalAlignment="Bottom">
    					<Grid.Resources>
    						<Storyboard x:Name="ProgressAnimation">
    							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="progressIndicator" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Offset)">
    								<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.0001"/>
    								<EasingDoubleKeyFrame KeyTime="00:00:01" Value="0.9997"/>
    							</DoubleAnimationUsingKeyFrames>
    							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="progressIndicator" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Offset)">
    								<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.0002"/>
    								<EasingDoubleKeyFrame KeyTime="00:00:01" Value="0.9998"/>
    							</DoubleAnimationUsingKeyFrames>
    						</Storyboard>
    						<Storyboard x:Name="ReverseProgressAnimation">
    							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="progressIndicator" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Offset)">
    								<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.9999"/>
    								<EasingDoubleKeyFrame KeyTime="00:00:01" Value="0.0002"/>
    							</DoubleAnimationUsingKeyFrames>
    							<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="progressIndicator" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Offset)">
    								<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.9998"/>
    								<EasingDoubleKeyFrame KeyTime="00:00:01" Value="0.0001"/>
    							</DoubleAnimationUsingKeyFrames>
    						</Storyboard>
    					</Grid.Resources>
    					<VisualStateManager.CustomVisualStateManager>
    						<ic:ExtendedVisualStateManager/>
    					</VisualStateManager.CustomVisualStateManager>
    					<VisualStateManager.VisualStateGroups>
    						<VisualStateGroup x:Name="Default" ic:ExtendedVisualStateManager.UseFluidLayout="True">
    							<VisualStateGroup.Transitions>
    								<VisualTransition GeneratedDuration="00:00:00.1000000"/>
    							</VisualStateGroup.Transitions>
    							<VisualState x:Name="GoodHit"/>
    							<VisualState x:Name="BadHit"/>
    							<VisualState x:Name="Idle"/>
    						</VisualStateGroup>
    					</VisualStateManager.VisualStateGroups>
    					<Border BorderThickness="10" CornerRadius="60,15,15,0" BorderBrush="Black" Opacity="0.75" d:LayoutOverrides="Width, Height" Effect="{StaticResource DefaultShadowSmall}" Grid.ColumnSpan="2"/>
    					<Border BorderThickness="1" CornerRadius="60,15,15,0" d:LayoutOverrides="Width, Height" BorderBrush="#7FFFFFFF" Grid.ColumnSpan="2">
    						<Border.Background>
    							<RadialGradientBrush RadiusY="0.812" GradientOrigin="0.5,0.945">
    								<GradientStop Color="{StaticResource TheGameDarkRed}" Offset="1"/>
    								<GradientStop Color="{StaticResource TheGameBrightRed}"/>
    							</RadialGradientBrush>
    						</Border.Background>
    					</Border>
    					<Border x:Name="progressIndicator" BorderThickness="0,1,1,0" CornerRadius="60,15,15,0" Opacity="0.5">
    						<Border.Background>
    							<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
    								<GradientStop Color="White" Offset="0"/>
    								<GradientStop Color="Transparent" Offset="0.0002"/>
    								<GradientStop Color="White" Offset="0.0001"/>
    							</LinearGradientBrush>
    						</Border.Background>
    					</Border>
    					<Grid Grid.ColumnSpan="2">
    						<Grid.ColumnDefinitions>
    							<ColumnDefinition Width="60"/>
    							<ColumnDefinition/>
    							<ColumnDefinition Width="24"/>
    						</Grid.ColumnDefinitions>
    						<TextBlock Text="{TemplateBinding Label}" Margin="0,2,15,0" VerticalAlignment="Top" Foreground="{TemplateBinding Foreground}" Grid.Column="1" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Gros"/>
    						<TextBlock Text="{TemplateBinding StatusText}" Margin="0,14,15,0" VerticalAlignment="Top" Foreground="{TemplateBinding Foreground}" Grid.Column="1" FontSize="8" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Gros"/>
    						<Button x:Name="btnQuitButton" Style="{StaticResource ProgramQuitButtonStyle2}" Content="X" Grid.Column="2" Margin="0,1,1,1" FontWeight="Bold" FontSize="13.333" FontFamily="Arial Black">
    							<Button.Foreground>
    								<LinearGradientBrush EndPoint="0.5,0.546" StartPoint="0.5,0.457">
    									<GradientStop Color="#FFB0B0B0" Offset="1"/>
    									<GradientStop Color="White"/>
    								</LinearGradientBrush>
    							</Button.Foreground>
    						</Button>
    					</Grid>
    					<Border CornerRadius="60,15,15,0" Background="{StaticResource DefaultGlassGradient}" Opacity="0.75" d:LayoutOverrides="Width, Height" IsHitTestVisible="False" Grid.ColumnSpan="2"/>
    				</Grid>
    			</ControlTemplate>
    		</Setter.Value>
    	</Setter>
    	<Setter Property="Label" Value="Bypasser v3.0 with very long name"/>
    	<Setter Property="Foreground" Value="White"/>
    	<Setter Property="FontFamily" Value="Fonts.zip#Gros"/>
    	<Setter Property="FontSize" Value="8"/>
    	<Setter Property="StatusText" Value="status text"/>
    </Style>
	<Style TargetType="local:ChatControl">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="local:ChatControl">
					<Border BorderThickness="2" BorderBrush="{StaticResource DefaultWindowBorder}" d:DesignHeight="209" d:DesignWidth="624" CornerRadius="5,5,0,0" Background="#19000000">
						<Grid x:Name="stackPanel" Background="#02000000" Margin="0,5,0,0">
							<Grid.RowDefinitions>
								<RowDefinition Height="Auto"/>
								<RowDefinition/>
								<RowDefinition Height="Auto"/>
							</Grid.RowDefinitions>
							<ToggleButton x:Name="btnPin" Content="Pin" HorizontalAlignment="Right" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Width="20" Margin="0,0,10,3" Height="20" Visibility="Collapsed"/>
							<ScrollViewer x:Name="scrollViewer" Grid.Row="1" BorderBrush="{x:Null}">
								<ItemsControl x:Name="itmMessages"  ItemsSource="{TemplateBinding ChatMessages}" />
							</ScrollViewer>
							<!--
							<ScrollViewer x:Name="scrollViewer" Style="{StaticResource DefaultScrollViewerStyle}" VerticalScrollBarVisibility="Visible" VerticalContentAlignment="Bottom" BorderBrush="#7FFFFFFF" BorderThickness="0" Margin="0" d:LayoutOverrides="Height" Grid.Row="1" ScrollViewer.VerticalScrollBarVisibility="Auto">
								<ItemsControl ItemsSource="{TemplateBinding ChatMessages}" IsHitTestVisible="False"/>
							</ScrollViewer>
							-->
							<TextBox x:Name="txtMessage" TextWrapping="Wrap" Background="{x:Null}" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White" VerticalContentAlignment="Bottom" MaxLength="500" BorderThickness="0,0.5,0,0" Margin="0" Grid.Row="2" Height="32" Visibility="{Binding InputVisibility, RelativeSource={RelativeSource TemplatedParent}}"/>
						</Grid>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
    <Style TargetType="local:ChatMessageItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:ChatMessageItem">
                	<StackPanel Orientation="Horizontal" d:DesignWidth="600">
                		<Border BorderBrush="#7FFFFFFF" BorderThickness="0,0,1,0" Margin="0,0,5,0">
                			<TextBlock FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White" d:LayoutOverrides="Height" Width="100" Text="{TemplateBinding MessageTimestamp}"/>
                		</Border>
                		<StackPanel>
                			<TextBlock TextWrapping="Wrap" Text="{TemplateBinding MessageSender}" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Margin="0,0,-74,0" d:LayoutOverrides="Width">
                				<TextBlock.Foreground>
                					<SolidColorBrush Color="{StaticResource TheGameLightBlue}"/>
                				</TextBlock.Foreground>
                			</TextBlock>
                			<TextBlock TextWrapping="Wrap" Text="{TemplateBinding MessageText}" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White" MaxWidth="500" d:LayoutOverrides="Width"/>
                		</StackPanel>
                	</StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="MessageSender" Value="[ WWWWWWWWWWWWWWWWWWWW ]"/>
        <Setter Property="MessageText" Value="so, hier kommt ein langer text. so, hier kommt ein langer text. so, hier kommt ein langer text. so, hier kommt ein langer text. so, hier kommt ein langer text. so, hier kommt ein langer text. so, hier kommt ein langer text. so, hier kommt ein langer text. so, hier kommt ein langer text. so, hier kommt ein langer text. so, hier kommt ein langer text. so, hier kommt ein langer text. so, hier kommt ein langer text. so, hier kommt ein langer text. so, hier kommt ein langer text. so, hier kommt ein langer text. so, hier kommt ein langer text. so, hier kommt ein langer text. so, hier kommt ein langer text. "/>
    </Style>
    <Style TargetType="local:MailControl">
    	<Setter Property="Template">
    		<Setter.Value>
    			<ControlTemplate TargetType="local:MailControl">
    				<Grid d:DesignWidth="800" d:DesignHeight="600">
    					<VisualStateManager.CustomVisualStateManager>
    						<ic:ExtendedVisualStateManager/>
    					</VisualStateManager.CustomVisualStateManager>
    					<VisualStateManager.VisualStateGroups>
    						<VisualStateGroup x:Name="DefaultStates" ic:ExtendedVisualStateManager.UseFluidLayout="True">
    							<VisualState x:Name="Normal"/>
								<VisualState x:Name="NoAccount">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="grid">
											<DiscreteObjectKeyFrame KeyTime="0">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Collapsed</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="grdCreateAccount">
											<DiscreteObjectKeyFrame KeyTime="0">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
    							<VisualState x:Name="Hacked">
    								<Storyboard>
    									<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="border">
    										<DiscreteObjectKeyFrame KeyTime="0">
    											<DiscreteObjectKeyFrame.Value>
    												<Visibility>Visible</Visibility>
    											</DiscreteObjectKeyFrame.Value>
    										</DiscreteObjectKeyFrame>
    									</ObjectAnimationUsingKeyFrames>
    									<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" Storyboard.TargetName="grid">
    										<DiscreteObjectKeyFrame KeyTime="0">
    											<DiscreteObjectKeyFrame.Value>
    												<Thickness>0,35,0,0</Thickness>
    											</DiscreteObjectKeyFrame.Value>
    										</DiscreteObjectKeyFrame>
    									</ObjectAnimationUsingKeyFrames>
    								</Storyboard>
    							</VisualState>
    							<VisualState x:Name="Composing">
    								<Storyboard>
    									<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="grid">
    										<DiscreteObjectKeyFrame KeyTime="0">
    											<DiscreteObjectKeyFrame.Value>
    												<Visibility>Collapsed</Visibility>
    											</DiscreteObjectKeyFrame.Value>
    										</DiscreteObjectKeyFrame>
    									</ObjectAnimationUsingKeyFrames>
    									<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="grdComposeMail">
    										<DiscreteObjectKeyFrame KeyTime="0">
    											<DiscreteObjectKeyFrame.Value>
    												<Visibility>Visible</Visibility>
    											</DiscreteObjectKeyFrame.Value>
    										</DiscreteObjectKeyFrame>
    									</ObjectAnimationUsingKeyFrames>
    								</Storyboard>
    							</VisualState>
    						</VisualStateGroup>
    					</VisualStateManager.VisualStateGroups>
						<Border x:Name="border" BorderBrush="Black" CornerRadius="5" Background="#3FFFFFFF" Height="25" Margin="5" VerticalAlignment="Top" Visibility="Collapsed">
    					    <StackPanel Orientation="Horizontal" Margin="5,0" VerticalAlignment="Center">
    						    <TextBlock TextWrapping="Wrap" Text="ADMINISTRATION MODE" FontFamily="Arial Black" FontSize="14.667" Width="200" VerticalAlignment="Center" Margin="0,0,20,0"/>
    						    <TextBlock TextWrapping="Wrap" Text="Choose account:" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Gros" FontSize="8" VerticalAlignment="Center" Margin="0,0,5,0"/>
    						    <ComboBox x:Name="cmbChooseAccount" VerticalAlignment="Center" HorizontalAlignment="Left" Width="200" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" ItemsSource="{TemplateBinding MailAccounts}"/>
    					    </StackPanel>
    					</Border>
    					<Grid x:Name="grid" Margin="0" Visibility="Visible">
    						<Grid.ColumnDefinitions>
    							<ColumnDefinition Width="0.261*"/>
    							<ColumnDefinition Width="0.739*"/>
    						</Grid.ColumnDefinitions>
    						<Grid.RowDefinitions>
    							<RowDefinition Height="32"/>
    							<RowDefinition Height="0.4*"/>
    							<RowDefinition Height="0.6*"/>
    						</Grid.RowDefinitions>
							<!---->
    						<sdk:TreeView x:Name="treeView" BorderThickness="0" Background="{x:Null}" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Grid.Row="1">
                                <sdk:TreeViewItem Header="Available Mail Folders" IsExpanded="True" Foreground="White">
                                	<sdk:TreeViewItem x:Name="tviInbox" Header="Inbox" Foreground="White"/>
                                	<sdk:TreeViewItem x:Name="tviSent" Header="Sent" Foreground="White"/>
                                	<sdk:TreeViewItem x:Name="tviSpam" Header="Spam" Foreground="White"/>
                                	<sdk:TreeViewItem x:Name="tviTrash" Header="Trash" Foreground="White"/>
                                </sdk:TreeViewItem>
                            </sdk:TreeView>
							<!---->
    						<sdk:DataGrid x:Name="dgrdMailHeaders" Grid.Column="1" Background="{x:Null}" BorderThickness="0" Margin="5,0,0,0" HeadersVisibility="Column" IsReadOnly="True" AreRowGroupHeadersFrozen="False" AutoGenerateColumns="False" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" ItemsSource="{TemplateBinding MailHeaders}" RowBackground="#3FEAEFF4" AlternatingRowBackground="#33FFFFFF" Grid.Row="1" SelectionMode="Single">
    							<sdk:DataGrid.Columns>
    								<sdk:DataGridTextColumn CanUserSort="True" Header="Subject" IsReadOnly="True" Width="*" Binding="{Binding Subject}"/>
    								<sdk:DataGridTextColumn CanUserSort="True" Header="Received" IsReadOnly="True" Binding="{Binding SentTime}" Width="SizeToCells" MinWidth="75"/>
    								<sdk:DataGridTextColumn CanUserSort="True" Header="Sender" IsReadOnly="True" Binding="{Binding SenderAddress}" Width="SizeToCells" MinWidth="75"/>
    							</sdk:DataGrid.Columns>
    						</sdk:DataGrid>
    						<Border BorderBrush="Black" BorderThickness="0" Grid.Row="2" Grid.ColumnSpan="2" Margin="0,5,0,0" Child="{TemplateBinding MailView}" d:LayoutOverrides="GridBox"/>
    						<sdk:GridSplitter HorizontalAlignment="Left" Width="5" Grid.Column="1" Grid.RowSpan="2"/>
    						<sdk:GridSplitter HorizontalAlignment="Stretch" Height="5" Grid.Row="2" VerticalAlignment="Top" Grid.ColumnSpan="2" d:LayoutOverrides="GridBox"/>
    						<Grid Background="#3FFFFFFF">
    							<Button x:Name="btnComposeMail" Content="Create new mail" d:LayoutOverrides="Height" VerticalAlignment="Center" Margin="5,0" Style="{StaticResource DefaultButtonStyle}" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8"/>
    						</Grid>
    						<Grid Grid.Column="1" Background="#3FFFFFFF" Margin="5,0,0,0">
    							<StackPanel HorizontalAlignment="Left" Orientation="Horizontal" VerticalAlignment="Center" Margin="5,0,0,0">
    								<Button x:Name="btnReply" Content="Reply" VerticalAlignment="Center" Style="{StaticResource DefaultButtonStyle}" Margin="0,0,5,0" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Width="90"/>
    								<Button x:Name="btnForward" Content="Forward" VerticalAlignment="Center" Style="{StaticResource DefaultButtonStyle}" Margin="0,0,5,0" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Width="90"/>
    								<Button x:Name="btnDelete" Content="Delete" VerticalAlignment="Center" Style="{StaticResource DefaultButtonStyle}" Margin="0,0,5,0" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Width="90"/>
    								<Button x:Name="btnSpam" Content="Flag as Spam" VerticalAlignment="Center" Style="{StaticResource DefaultButtonStyle}" Margin="0,0,5,0" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Width="90"/>
    							</StackPanel>
    						</Grid>
    					</Grid>
    					<Grid x:Name="grdCreateAccount" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed">
    						<StackPanel HorizontalAlignment="Left" VerticalAlignment="Top">
    							<TextBlock TextWrapping="Wrap" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Margin="0,0,0,10" Foreground="White"><Run Text="You can create a new mail account here. "/><LineBreak/><Run Text="Note that you must log in to this system in order to manage mail for this account."/></TextBlock>
    							<StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Margin="0,0,0,15">
    								<TextBlock TextWrapping="Wrap" Text="Your username:" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" VerticalAlignment="Center" Margin="0,0,5,0" Foreground="White"/>
    								<TextBox x:Name="txtUsername" TextWrapping="Wrap" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" VerticalAlignment="Center" Width="120" Margin="0,0,5,0" Foreground="Black"/>
    								<TextBlock TextWrapping="Wrap" Text="@" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" VerticalAlignment="Center" Margin="0,0,5,0" Foreground="White"/>
    								<TextBlock x:Name="txtHostAddress" TextWrapping="Wrap" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" VerticalAlignment="Center" Foreground="White" Text="{TemplateBinding HostNameAddress}"/>
    							</StackPanel>
    							<Button Content="Create account" Width="100" Style="{StaticResource DefaultButtonStyle}" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" x:Name="btnCreateAccount"/>
    						</StackPanel>
    					</Grid>
    					<Grid x:Name="grdComposeMail" Visibility="Collapsed">
    						<local:MailCreationControl x:Name="mailCreationControl"/>
    					</Grid>
    				</Grid>
    			</ControlTemplate>
    		</Setter.Value>
    	</Setter>
    </Style>
    <Style TargetType="local:MailViewControl">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:MailViewControl">
                    <Grid d:DesignWidth="867" d:DesignHeight="710">
                    	<Grid.RowDefinitions>
                    		<RowDefinition Height="61"/>
                    		<RowDefinition/>
                    	</Grid.RowDefinitions>
                    	<Grid Background="#33FFFFFF">
                    		<Grid.RowDefinitions>
                    			<RowDefinition Height="20"/>
                    			<RowDefinition/>
                    			<RowDefinition Height="25"/>
                    		</Grid.RowDefinitions>
                    		<Grid.ColumnDefinitions>
                    			<ColumnDefinition Width="50"/>
                    			<ColumnDefinition/>
                    		</Grid.ColumnDefinitions>
                    		<TextBlock TextWrapping="Wrap" Text="From:" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White" d:LayoutOverrides="Height" VerticalAlignment="Center" Margin="5,0,0,0"/>
                    		<TextBlock TextWrapping="Wrap" Text="{TemplateBinding From}" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White" Grid.Column="1" HorizontalAlignment="Left" d:LayoutOverrides="Height" VerticalAlignment="Center"/>
                    		<TextBlock TextWrapping="Wrap" Text="CC:" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White" d:LayoutOverrides="Height" Grid.Row="1" VerticalAlignment="Top" Margin="5,0,0,0"/>
                    		<TextBlock TextWrapping="Wrap" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White" Text="{TemplateBinding CC}" d:LayoutOverrides="Width, Height" Grid.Row="1" Grid.Column="1"/>
                    		<TextBlock TextWrapping="Wrap" Text="{TemplateBinding Subject}" Margin="5,0" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Gros" FontSize="8" Foreground="White" Effect="{StaticResource DefaultGlowWhite}" Grid.ColumnSpan="2" Grid.Row="2" VerticalAlignment="Center" Grid.Column="1"/>
                    	</Grid>
                    	<ScrollViewer Background="#19FFFFFF" Grid.Row="1" Margin="0,3,0,0">
                    		<TextBlock TextWrapping="Wrap" Text="{TemplateBinding Body}" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White"/>
                    	</ScrollViewer>
                    	<sdk:GridSplitter HorizontalAlignment="Stretch" Height="3" VerticalAlignment="Top" Grid.Row="1"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="CC" Value="noone@nosystem.nocorporation.notld"/>
    </Style>
    <Style TargetType="local:MailCreationControl">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:MailCreationControl">
                    <Grid d:DesignWidth="757" d:DesignHeight="438">
                    	<Grid.ColumnDefinitions>
                    		<ColumnDefinition Width="0.116*"/>
                    		<ColumnDefinition Width="0.884*"/>
                    	</Grid.ColumnDefinitions>
                    	<Grid.RowDefinitions>
                    		<RowDefinition Height="0.283*" MinHeight="75"/>
                    		<RowDefinition Height="0.717*"/>
                    	</Grid.RowDefinitions>
                    	<Grid Grid.Column="1" VerticalAlignment="Top" MinHeight="111">
                    	<Grid.RowDefinitions>
                    		<RowDefinition Height="0.25*"/>
                    		<RowDefinition Height="0.25*"/>
                    		<RowDefinition Height="0.269*"/>
                    		<RowDefinition Height="0.279*"/>
                    	</Grid.RowDefinitions>
                    	<Grid.ColumnDefinitions>
                    		<ColumnDefinition Width="0.075*"/>
                    		<ColumnDefinition Width="0.925*"/>
                    	</Grid.ColumnDefinitions>
                    	<TextBlock TextWrapping="Wrap" Text="To:" VerticalAlignment="Top" d:LayoutOverrides="Width" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White"/>
                    	<TextBlock TextWrapping="Wrap" Text="CC:" VerticalAlignment="Top" d:LayoutOverrides="Width" Grid.Row="1" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White"/>
                    	<TextBlock TextWrapping="Wrap" Text="BCC:" VerticalAlignment="Top" d:LayoutOverrides="Width" Grid.Row="2" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White"/>
                    	<TextBlock TextWrapping="Wrap" Text="Subject:" VerticalAlignment="Top" Grid.Row="3" d:LayoutOverrides="Width" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White"/>
                    	<TextBox x:Name="txtTo" TextWrapping="Wrap" Text="{TemplateBinding To}" d:LayoutOverrides="Width" Grid.Column="1" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White" MinHeight="24" VerticalAlignment="Top" Margin="0,0,0,5"/>
                    	<TextBox x:Name="txtCC" TextWrapping="Wrap" Text="{TemplateBinding CC}" Grid.Column="1" d:LayoutOverrides="Width" Grid.Row="1" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White" MinHeight="24" VerticalAlignment="Top" Margin="0,0,0,5"/>
                    	<TextBox x:Name="txtBCC" TextWrapping="Wrap" Text="{TemplateBinding BCC}" Grid.Column="1" d:LayoutOverrides="Width" Grid.Row="2" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White" MinHeight="24" VerticalAlignment="Top" Margin="0,0,0,5"/>
                    	<TextBox x:Name="txtSubject" TextWrapping="Wrap" Text="{TemplateBinding Subject}" Grid.Column="1" d:LayoutOverrides="Width" Grid.Row="3" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White" MinHeight="24" VerticalAlignment="Top"/>
                    </Grid>
                    	<Button x:Name="btnSend" Content="Send" VerticalAlignment="Top" Width="75" Height="75" HorizontalAlignment="Center"/>
                    	<Button x:Name="btnBack" Content="Back" VerticalAlignment="Top" Width="75" HorizontalAlignment="Center" Height="24" Margin="0,80,0,0"/>
                    	<ScrollViewer Grid.Row="1" Margin="0,8,0,0" Padding="0" Grid.ColumnSpan="2" BorderThickness="0" VerticalScrollBarVisibility="Auto">
                    		<TextBox x:Name="txtBody" TextWrapping="Wrap" Text="{TemplateBinding Body}" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White" Background="{x:Null}" BorderBrush="{x:Null}" AcceptsReturn="True"/>
                    	</ScrollViewer>
                    	<sdk:GridSplitter HorizontalAlignment="Stretch" Grid.Row="1" VerticalAlignment="Top" Height="5" Grid.ColumnSpan="2"/>
					</Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style TargetType="local:BankingControl">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:BankingControl">
                	<Grid d:DesignWidth="580" d:DesignHeight="396">
                		<VisualStateManager.CustomVisualStateManager>
                			<ic:ExtendedVisualStateManager/>
                		</VisualStateManager.CustomVisualStateManager>
                		<VisualStateManager.VisualStateGroups>
                			<VisualStateGroup x:Name="DefaultStates" ic:ExtendedVisualStateManager.UseFluidLayout="True">
                				<VisualStateGroup.Transitions>
                					<VisualTransition GeneratedDuration="0:0:0.5">
                						<VisualTransition.GeneratedEasingFunction>
                							<CubicEase EasingMode="EaseInOut"/>
                						</VisualTransition.GeneratedEasingFunction>
                					</VisualTransition>
                				</VisualStateGroup.Transitions>
                				<VisualState x:Name="Normal">
                					<Storyboard>
                						<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="stkBalanceDisplay" d:IsOptimized="True"/>
                					</Storyboard>
                				</VisualState>
                				<VisualState x:Name="CreateTransaction">
                					<Storyboard>
                						<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="grdCreateTransaction" d:IsOptimized="True"/>
                						<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="grdOverview" d:IsOptimized="True"/>
                						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.IsHitTestVisible)" Storyboard.TargetName="grdOverview">
                							<DiscreteObjectKeyFrame KeyTime="0">
                								<DiscreteObjectKeyFrame.Value>
                									<System:Boolean>False</System:Boolean>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                						<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="stkBalanceDisplay" d:IsOptimized="True"/>
                						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.IsHitTestVisible)" Storyboard.TargetName="grdCreateTransaction">
                							<DiscreteObjectKeyFrame KeyTime="0">
                								<DiscreteObjectKeyFrame.Value>
                									<System:Boolean>True</System:Boolean>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                					</Storyboard>
                				</VisualState>
                				<VisualState x:Name="CreateAccount">
                					<Storyboard>
                						<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="grid" d:IsOptimized="True"/>
                						<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="grdOverview" d:IsOptimized="True"/>
                					</Storyboard>
                				</VisualState>
                			</VisualStateGroup>
                			<VisualStateGroup x:Name="HackedNonhacked">
                				<VisualState x:Name="Hacked">
                					<Storyboard>
                						<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="cmbSelectAccount" d:IsOptimized="True"/>
                					</Storyboard>
                				</VisualState>
                			</VisualStateGroup>
                		</VisualStateManager.VisualStateGroups>
                		<Grid.RowDefinitions>
                			<RowDefinition Height="32"/>
                			<RowDefinition/>
                		</Grid.RowDefinitions>
                		<Grid x:Name="grdOverview" d:LayoutOverrides="Width, Height" Grid.RowSpan="2" Grid.Row="1">
                			<Grid.RowDefinitions>
                				<RowDefinition Height="29"/>
                				<RowDefinition Height="0.556*"/>
                				<RowDefinition Height="0.444*"/>
                			</Grid.RowDefinitions>
                			<sdk:DataGrid x:Name="dgrdMutations" Grid.Row="1" Background="{x:Null}" ItemsSource="{TemplateBinding Mutations}" SelectionMode="Single" Grid.RowSpan="2" AutoGenerateColumns="True" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" AlternatingRowBackground="#33FFFFFF" RowBackground="#4CEAEFF4" Foreground="White"/>
                			<Button x:Name="btnNewTransaction" Content="Transfer Money" HorizontalAlignment="Left" d:LayoutOverrides="Height" VerticalAlignment="Center" Style="{StaticResource DefaultButtonStyle}" Width="100" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White"/>
                		</Grid>
                		<Grid x:Name="grdCreateTransaction" VerticalAlignment="Top" Margin="0,1,0,0" Grid.Row="1" IsHitTestVisible="False" Opacity="0">
                			<Grid.ColumnDefinitions>
                				<ColumnDefinition Width="175"/>
                				<ColumnDefinition/>
                			</Grid.ColumnDefinitions>
                			<Grid.RowDefinitions>
                				<RowDefinition Height="32"/>
                				<RowDefinition Height="32"/>
                				<RowDefinition Height="32"/>
                				<RowDefinition Height="75"/>
                				<RowDefinition Height="32"/>
                			</Grid.RowDefinitions>
                			<TextBlock TextWrapping="Wrap" Text="Recipient Account Number:" VerticalAlignment="Top" HorizontalAlignment="Left" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White"/>
                			<TextBox x:Name="txtTargetAccount" TextWrapping="Wrap" VerticalAlignment="Top" Margin="0,0,32,0" Grid.Column="1" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8"/>
                			<TextBlock TextWrapping="Wrap" Text="Recipient bank address:" VerticalAlignment="Top" Grid.Row="1" HorizontalAlignment="Left" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White"/>
                			<TextBox x:Name="txtTargetBank" TextWrapping="Wrap" VerticalAlignment="Top" Margin="0,0,32,0" Grid.Column="1" Grid.Row="1" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Text="hostname.corporation.tld"/>
                			<TextBlock TextWrapping="Wrap" Text="Amount:" VerticalAlignment="Top" Grid.Row="2" HorizontalAlignment="Left" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White"/>
                			<TextBox x:Name="txtAmount" TextWrapping="Wrap" VerticalAlignment="Top" Grid.Column="1" Grid.Row="2" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8"/>
                			<TextBlock TextWrapping="Wrap" Text="Purpose:" VerticalAlignment="Top" Grid.Row="3" HorizontalAlignment="Left" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White"/>
                			<TextBox x:Name="txtPurpose" TextWrapping="Wrap" Grid.Column="1" Grid.Row="3" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" AcceptsReturn="True"/>
                			<Button x:Name="btnSend" Content="Send" HorizontalAlignment="Left" Width="75" VerticalAlignment="Center" Style="{StaticResource DefaultButtonStyle}" Grid.Column="1" Grid.Row="4"/>
                			<Button x:Name="btnBack" Content="Back" HorizontalAlignment="Right" Width="75" d:LayoutOverrides="GridBox" VerticalAlignment="Center" Style="{StaticResource DefaultButtonStyle}" Grid.Row="4" Margin="0,0,5,0"/>
                			<Button x:Name="btnCheckAccountData" Content="a" HorizontalAlignment="Right" d:LayoutOverrides="Height" Grid.Column="1" Style="{StaticResource DefaultButtonStyle}" FontFamily="Webdings" Grid.RowSpan="2" Margin="0,0,0,11" FontSize="16" Width="24"/>
                		</Grid>
                		<StackPanel x:Name="stkBalanceDisplay" HorizontalAlignment="Right" VerticalAlignment="Center" Orientation="Horizontal" Opacity="0">
                			<TextBlock TextWrapping="Wrap" Text="Account #:" FontSize="8" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" Foreground="White" Margin="0,0,5,0"/>
                			<TextBlock TextWrapping="Wrap" Text="{TemplateBinding MyBankAccountNumber}" FontSize="8" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" Foreground="White" Margin="0,0,5,0"/>
                			<TextBlock TextWrapping="Wrap" Text="-" FontSize="8" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" Foreground="White" Margin="0,0,5,0"/>
                			<TextBlock TextWrapping="Wrap" Text="Current Balance:" d:LayoutOverrides="Width" FontSize="8" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" Foreground="White" Margin="0,0,5,0"/>
                			<TextBlock TextWrapping="Wrap" FontSize="8" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" Foreground="White" Margin="0,0,5,0" Text="{TemplateBinding Balance}"/>
                			<TextBlock TextWrapping="Wrap" Text="Credits" FontSize="8" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" Foreground="White"/>
                		</StackPanel>
                		<ComboBox x:Name="cmbSelectAccount" HorizontalAlignment="Left" Width="120" d:LayoutOverrides="Height" VerticalAlignment="Center" Opacity="0" DisplayMemberPath="Number" ItemsSource="{TemplateBinding Accounts}"/>
                		<Grid x:Name="grid" Grid.Row="1" Opacity="0">
                			<Button x:Name="btnCreateAccount" Content="Create Bank Account" HorizontalAlignment="Center" VerticalAlignment="Center" Style="{StaticResource DefaultButtonStyle}" Width="150"/>
                		</Grid>
                	</Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Balance" Value="99 999 999 999 999"/>
    </Style>
    <Style TargetType="local:ThreadControl">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:ThreadControl">
                	<Border x:Name="border" BorderBrush="White" BorderThickness="0.5,0,0,0.5" d:DesignWidth="820" Background="#02FFFFFF">
                		<VisualStateManager.VisualStateGroups>
                			<VisualStateGroup x:Name="MessageStates">
                				<VisualState x:Name="Collapsed"/>
                				<VisualState x:Name="Expanded">
                					<Storyboard>
                						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="itemsControl">
                							<DiscreteObjectKeyFrame KeyTime="0">
                								<DiscreteObjectKeyFrame.Value>
                									<Visibility>Visible</Visibility>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="stackPanel">
                							<DiscreteObjectKeyFrame KeyTime="0">
                								<DiscreteObjectKeyFrame.Value>
                									<Visibility>Visible</Visibility>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                					</Storyboard>
                				</VisualState>
                				<VisualState x:Name="Composing">
                					<Storyboard>
                						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="btnReply">
                							<DiscreteObjectKeyFrame KeyTime="0">
                								<DiscreteObjectKeyFrame.Value>
                									<Visibility>Collapsed</Visibility>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="btnSend">
                							<DiscreteObjectKeyFrame KeyTime="0">
                								<DiscreteObjectKeyFrame.Value>
                									<Visibility>Visible</Visibility>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="textBlock">
                							<DiscreteObjectKeyFrame KeyTime="0">
                								<DiscreteObjectKeyFrame.Value>
                									<Visibility>Collapsed</Visibility>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="txtBody">
                							<DiscreteObjectKeyFrame KeyTime="0">
                								<DiscreteObjectKeyFrame.Value>
                									<Visibility>Visible</Visibility>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="txtSubject">
                							<DiscreteObjectKeyFrame KeyTime="0">
                								<DiscreteObjectKeyFrame.Value>
                									<Visibility>Visible</Visibility>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                						<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="textBlock2" d:IsOptimized="True"/>
                						<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="textBlock3" d:IsOptimized="True"/>
                						<DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="textBlock1" d:IsOptimized="True"/>
                						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="btnCancel">
                							<DiscreteObjectKeyFrame KeyTime="0">
                								<DiscreteObjectKeyFrame.Value>
                									<Visibility>Visible</Visibility>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="stackPanel">
                							<DiscreteObjectKeyFrame KeyTime="0">
                								<DiscreteObjectKeyFrame.Value>
                									<Visibility>Visible</Visibility>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                					</Storyboard>
                				</VisualState>
                			</VisualStateGroup>
                			<VisualStateGroup x:Name="MessageSelectionStates">
                				<VisualState x:Name="MessageUnselected"/>
                				<VisualState x:Name="MessageSelected">
                					<Storyboard>
                						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Cursor)" Storyboard.TargetName="border">
                							<DiscreteObjectKeyFrame KeyTime="0">
                								<DiscreteObjectKeyFrame.Value>
                									<Cursor>Hand</Cursor>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                						<ColorAnimation Duration="0" To="#3FFFFFFF" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="border" d:IsOptimized="True"/>
                					</Storyboard>
                				</VisualState>
                			</VisualStateGroup>
                		</VisualStateManager.VisualStateGroups>
                		<StackPanel Margin="0,0,3,0">
                			<StackPanel x:Name="stkMessageContainer" Background="#02FFFFFF" Margin="5,0,0,5">
                				<Grid x:Name="mainInfo" MinHeight="20">
                					<Grid.ColumnDefinitions>
                						<ColumnDefinition Width="0.624*"/>
                						<ColumnDefinition Width="0.376*"/>
                					</Grid.ColumnDefinitions>
                					<StackPanel Grid.ColumnSpan="2">
                						<TextBlock x:Name="textBlock1" VerticalAlignment="Center" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White" Text="{Binding Converter={StaticResource NumberTypeToStringConverter}}" DataContext="{TemplateBinding PostTimeStamp}" TextAlignment="Right" IsHitTestVisible="False" HorizontalAlignment="Right" Opacity="0.5"/>
                						<TextBlock x:Name="textBlock3" VerticalAlignment="Center" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" Foreground="White" IsHitTestVisible="False" HorizontalAlignment="Right" Opacity="0.5" Text="{TemplateBinding PostFrom}"/>
                						<TextBlock x:Name="textBlock2" TextWrapping="Wrap" VerticalAlignment="Center" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Gros" FontSize="8" Foreground="White" MinWidth="200" IsHitTestVisible="False" Text="{TemplateBinding PostSubject}"/>
                					</StackPanel>
                					<TextBox x:Name="txtSubject" TextWrapping="Wrap" Text="{TemplateBinding NewSubject}" d:LayoutOverrides="Width, Height" Visibility="Collapsed" Grid.ColumnSpan="2" Margin="0,0,0,3"/>
                				</Grid>
                				<StackPanel x:Name="stackPanel" Visibility="Collapsed" Margin="0,5,0,0">
                					<Border BorderBrush="White" BorderThickness="0,0.5,0,0">
                						<Grid d:LayoutOverrides="Width" Margin="0,3" MinHeight="64">
                							<TextBlock x:Name="textBlock" TextWrapping="Wrap" Text="{TemplateBinding PostBody}" Foreground="White" FontFamily="/Waaahsabi.Controls.TheGame;component/Fonts/Fonts.zip#Bavaria Regular" FontSize="8" d:LayoutOverrides="Width, Height"/>
                							<TextBox x:Name="txtBody" TextWrapping="Wrap" Text="{TemplateBinding NewBody}" Visibility="Collapsed" AcceptsReturn="True"/>
                						</Grid>
                					</Border>
                					<StackPanel Orientation="Horizontal" Margin="0,3,0,0" HorizontalAlignment="Right">
                						<Button x:Name="btnReply" Content="Reply" VerticalAlignment="Center" Width="75" HorizontalAlignment="Left"/>
                						<Button x:Name="btnSend" Content="Send" VerticalAlignment="Center" Width="75" Visibility="Collapsed"/>
                						<Button x:Name="btnCancel" Content="Cancel" Width="75" VerticalAlignment="Center" Margin="5,0,0,0" Visibility="Collapsed"/>
                					</StackPanel>
                				</StackPanel>
                			</StackPanel>
                			<ItemsControl x:Name="itemsControl" Margin="8,0,0,0" Visibility="Collapsed" ItemsSource="{TemplateBinding PostFollowUps}"/>
                		</StackPanel>
                	</Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="PostFrom" Value="marve@veryveryvery.looooooooooooooooooooong.address"/>
        <Setter Property="PostSubject" Value="This is the topic "/>
        <Setter Property="PostBody" Value="Ok, this is just the body that works anyways"/>
        <Setter Property="IsMessageExpanded" Value="False"/>
    </Style>
</ResourceDictionary>
